package br.com.andre.neo4j.view;

import br.com.andre.neo4j.model.ActorDAO;
import br.com.andre.neo4j.model.ActorTO;
import br.com.andre.neo4j.model.DirectorDAO;
import br.com.andre.neo4j.model.DirectorTO;
import br.com.andre.neo4j.model.MovieDAO;
import br.com.andre.neo4j.model.MovieTO;
import br.com.andre.neo4j.model.RelationshipCreate;
import br.com.andre.neo4j.model.TestTraversal;
import br.com.andre.neo4j.model.UserDAO;
import br.com.andre.neo4j.model.UserTO;

public class Runner {
	public static void main(String[] args) {
		
		UserTO user = new UserTO();
		UserDAO userDAO = new UserDAO();
		
		//ActorTO actor = new ActorTO();
		//ActorDAO actorDAO = new ActorDAO();
		
		/*MovieTO movie = new MovieTO();
		MovieDAO movieDAO = new MovieDAO();
		
		DirectorTO director = new DirectorTO();
		DirectorDAO directorDAO = new DirectorDAO();
		
		RelationshipCreate create = new RelationshipCreate();
		*/
		// set user
		user.setLogin("andre@gmail.com");
		user.setName("Andre");
		user.setPassword("123");
		/*
		// set movie
		movie.setTitle("O Procurado");
		movie.setYear(2013);
		*/
		// set actor
		//actor.setName("Morgan Freeman");
		//actor.setGender("man");
		/*
		// set director
		director.setName("Timur Bekmambetov");
		
		// create objects
		userDAO.createUserIndex(user);
		movieDAO.createMovieIndex(movie);
		actorDAO.createActor(actor);
		directorDAO.createDirector(director);
		
		// crate relationships			
		create.relationshipUserAndMovie(user, movie);
		create.relationshipActorAndMovieAndDirector(movie, actor, director);
		*/
	
		//Teste Traveser
		
		TestTraversal testTraversal = new TestTraversal();
		//testTraversal.getMoviesActor(actor);
		
		testTraversal.getActorsThisMovie(user);
		
		
	}
}
